package com.cnhis.cloudhealth.clinical.hosdoctor.doctorparameter.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.cnhis.cloudhealth.clinical.hosdoctor.doctorparameter.bo.DoctorparameterBo;
import com.cnhis.cloudhealth.commons.Mappers.ModelVo;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;

@Service
public class DoctorparameterImpl implements IDoctorparameter {
	@Autowired
	private DoctorparameterBo doctorparameterBo;

	@Override
	public String getSysParamValue(int productId,int programId,int paramNo) throws Exception {
		return doctorparameterBo.getSysValue(productId,programId,paramNo);
	}

	@Override
	public Boolean savedOneUserParameters(Map map) throws Exception {
		return doctorparameterBo.savedOneUserParameters(map);
	}

	@Override
	public String getUserParamValue(int productId, int programId, int paramNo,long userId,int privilege) throws Exception {
		return doctorparameterBo.getUserValue(productId,programId,paramNo,userId,privilege);
	}

	@Override
	public ModelVo getPersonalParams(Map<String,Object> map) {
		return doctorparameterBo.selectPersonalParams(map);
	}

	@Override
	public ModelVo getDepartmentParams(Map<String,Object> map) {
		return doctorparameterBo.selectDepartmentParams(map);
	}

	@Override
	public ModelVo getPublicParams(Map<String,Object> map) {
		return doctorparameterBo.selectPublicParams(map);
	}

	@Override
	public ModelVo getOrderstatusdesc() {
		return doctorparameterBo.selectOrderstatusdesc();
	}

	@Override
	public void updateOrderDesc(Map<String, Object> map)throws Exception{
		doctorparameterBo.updateOrderDesc(map);
	}

	@Override
	public ModelVo getOrderFields(){
		return doctorparameterBo.selectOrderFields();
	}

	@Override
	public String getSysValue(int productId, int programId, int paramNo)throws Exception {
		return doctorparameterBo.getSysValue(productId,programId,paramNo);
	}
	
	@Override
	public String getiah04(Map<String, Object> map)throws Exception{
		return doctorparameterBo.getiah04(map);
	}
}
